package com.cosmoplat.xikai.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "设备使用记录表", description = "用于表示系统中的设备使用记录表")
@Data
public class DeviceUsageRecord {
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "开机时长", example = "5")
    private Long bootTime = 0L;
    @ApiModelProperty(value = "设备编号", example = "5")
    private String code;
    @ApiModelProperty(value = "工作时长", example = "6")
    private Long workingHours = 0L;
    @ApiModelProperty(value = "创建时间", example = "2025-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dataTime;
    @ApiModelProperty(value = "工作日期", example = "2025-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date workingDate;
    @ApiModelProperty(value = "设备状态", example = "1")
    private String deviceStatus;
}
